#!/bin/bash
# FukaiHiro Village — app icon.
# A freshly-built, unsigned app is blocked by macOS privacy protection from reading files
# in ~/Documents. Terminal is NOT blocked, and FukaiHiro.command already runs there — so the
# icon simply hands off to it. You get the app icon; the village starts reliably.
DIR="$(cd "$(dirname "$0")/../../.." && pwd)"
CMD="$DIR/FukaiHiro.command"
if [ -f "$CMD" ]; then
  open -a Terminal "$CMD"
else
  osascript -e 'display alert "FukaiHiro Village" message "Could not find FukaiHiro.command next to the app."'
fi
